package cn.tedu.notice.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class NoticeAddParam {

    @ApiModelProperty(value = "公告id")
    private Integer id;

    @ApiModelProperty(value = "发布人id")
    private Integer createPeopleId;

    //前段传来的为String类型，要转为Date类型
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "公告创建时间")
    private Date createTime;

    @ApiModelProperty(value = "公告标题")
    private String title;

    @ApiModelProperty(value = "公告等级  0次要  1一般  2重要  3紧急")
    private String level;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "公告发布状态 1发布 0未发布")
    private String status;

    @ApiModelProperty(value = "逻辑删除  0不删除  1逻辑删除")
    private String delSign;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "发布公告的接收对象 员工id")
    private List<Integer> empListId;
}
